var fs  = require("fs");

var names = ['C++期中模拟测试','Java期末考试','计算机编程二级测试题','英语四级模拟考试','智力游戏题目','C语言模拟题','前端模拟测试','大学物理题目'];

var pp = [];

names.forEach(function(n,index){

	var p = {};
	p.id = index+1;
	p.name = n;
	p.ques_num = Math.floor(Math.random(4)+1)*10;
	p.total_score = p.ques_num*5;
	p.during = Math.floor(Math.random()*2)*60;

	pp.push(p)
})

fs.writeFileSync('../paper/all.json',JSON.stringify(pp));